using Godot;
using System;

public partial class LevelStartScreenState : BaseLevelState
{
    LevelStartScreen screen;

    public override void _Ready()
    {
        base._Ready();
        screen = GetNode<LevelStartScreen>("LevelStartScreen");
        screen.OnScreenEnd += OnScreenEndHandler;
    }

    private void OnScreenEndHandler()
    {
        GD.Print("开屏结束");
        EmitSignal(SignalName.OnStateEnd, this);
    }

    public override void Enter()
    {
        base.Enter();
        screen.ShowScreen(stateMachime.LevelManager.LevelTitle);
    }

    public override void Exit()
    {
        base.Exit();
    }
}
